import { useContext } from "react";
import { countCtx, helloCtx } from "./count";

export default function GrandChild() {
	const count = useContext(countCtx);
	const hello = useContext(helloCtx);

	return (
		<div>
			<div onClick={hello}>GrandChild:{count}</div>
		</div>
	);
}